import { DEFAULT_OPTS } from '@/settings'
import { defHttp } from '@/utils/http/axios'

enum API {
  BILL_LIST = '/bill/list'
}

export interface IBillProps {
  id: string;
  price: string;
  verifyDate: string;
  createDate: string;
  updateDate: string;
}

/** 获取账单列表 */
export function getBillList(date: string) {
  return defHttp.get<IBillProps[]>({
    url: API.BILL_LIST,
    params: {
      date
    }
  }, DEFAULT_OPTS)
}